package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.RptPrvRentBasesiteInfoMapper;
import com.rzl.expense.expense.domain.RptPrvRentBasesiteInfo;
import com.rzl.expense.expense.service.IRptPrvRentBasesiteInfoService;

/**
 * 摊销明细Service业务层处理
 * 
 * @author expense
 * @date 2025-03-11
 */
@Service
public class RptPrvRentBasesiteInfoServiceImpl implements IRptPrvRentBasesiteInfoService 
{
    @Autowired
    private RptPrvRentBasesiteInfoMapper rptPrvRentBasesiteInfoMapper;

    /**
     * 查询摊销明细
     * 
     * @param prvId 摊销明细主键
     * @return 摊销明细
     */
    @Override
    public RptPrvRentBasesiteInfo selectRptPrvRentBasesiteInfoByPrvId(String prvId)
    {
        return rptPrvRentBasesiteInfoMapper.selectRptPrvRentBasesiteInfoByPrvId(prvId);
    }

    /**
     * 查询摊销明细列表
     * 
     * @param rptPrvRentBasesiteInfo 摊销明细
     * @return 摊销明细
     */
    @Override
    public List<RptPrvRentBasesiteInfo> selectRptPrvRentBasesiteInfoList(RptPrvRentBasesiteInfo rptPrvRentBasesiteInfo)
    {
        return rptPrvRentBasesiteInfoMapper.selectRptPrvRentBasesiteInfoList(rptPrvRentBasesiteInfo);
    }

    /**
     * 新增摊销明细
     * 
     * @param rptPrvRentBasesiteInfo 摊销明细
     * @return 结果
     */
    @Override
    public int insertRptPrvRentBasesiteInfo(RptPrvRentBasesiteInfo rptPrvRentBasesiteInfo)
    {
        return rptPrvRentBasesiteInfoMapper.insertRptPrvRentBasesiteInfo(rptPrvRentBasesiteInfo);
    }

    /**
     * 修改摊销明细
     * 
     * @param rptPrvRentBasesiteInfo 摊销明细
     * @return 结果
     */
    @Override
    public int updateRptPrvRentBasesiteInfo(RptPrvRentBasesiteInfo rptPrvRentBasesiteInfo)
    {
        return rptPrvRentBasesiteInfoMapper.updateRptPrvRentBasesiteInfo(rptPrvRentBasesiteInfo);
    }

    /**
     * 批量删除摊销明细
     * 
     * @param prvIds 需要删除的摊销明细主键
     * @return 结果
     */
    @Override
    public int deleteRptPrvRentBasesiteInfoByPrvIds(String[] prvIds)
    {
        return rptPrvRentBasesiteInfoMapper.deleteRptPrvRentBasesiteInfoByPrvIds(prvIds);
    }

    /**
     * 删除摊销明细信息
     * 
     * @param prvId 摊销明细主键
     * @return 结果
     */
    @Override
    public int deleteRptPrvRentBasesiteInfo(String onYear, String onMonth)
    {
        return rptPrvRentBasesiteInfoMapper.deleteRptPrvRentBasesiteInfo(onYear,onMonth);
    }




    @Override
    public void batchRptPrvRentBasesiteInfo(List<RptPrvRentBasesiteInfo> list)
    {

         rptPrvRentBasesiteInfoMapper.batchRptPrvRentBasesiteInfo(list);
    }


}
